﻿@model XPressify.Models.RelationshipLoveChangeModel
@using XPressify.Data.Helpers

@{
    ViewBag.Title = "Change relationship status";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Change relationship status</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Fields</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.RelationshipType)
        </div>
        <div class="editor-field">
            @Html.DropDownListFor(model => model.RelationshipType, new List<SelectListItem> { new SelectListItem { Text = "In relationship", Value = RelationshipType.InRelationshipWith.ToString() }, new SelectListItem { Text = "Complicate", Value = RelationshipType.ItsComplicatedWith.ToString() }, new SelectListItem { Text = "Married", Value = RelationshipType.MarriedWith.ToString() }, new SelectListItem { Text = "Engaged", Value = RelationshipType.EngagedWith.ToString() },  new SelectListItem { Text = "Open relationship", Value = RelationshipType.OpenRelationshipWith.ToString() } })
        </div>
        
        <p>
            <input type="submit" value="Save" />
        </p>
        
    </fieldset>
}
<div>
    @Html.ActionLink("Back to profile", "ProfileView", "Profile", new { id = Model.CurrentUserId }, new { })
</div>

